package com.zh.familyInfo.service.impl;

import com.zh.common.utils.StringUtil;
import com.zh.familyInfo.dao.IllFamilyHistoryDao;
import com.zh.familyInfo.domain.IllFamilyHistoryDO;
import com.zh.familyInfo.service.IllFamilyHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class IllFamilyHistoryServiceImpl implements IllFamilyHistoryService {
	@Autowired
	private IllFamilyHistoryDao illFamilyHistoryDao;
	
	@Override
	public IllFamilyHistoryDO get(String id){
		return illFamilyHistoryDao.get(id);
	}
	
	@Override
	public List<IllFamilyHistoryDO> list(Map<String, Object> map){
		return illFamilyHistoryDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return illFamilyHistoryDao.count(map);
	}
	
	@Override
	public int save(IllFamilyHistoryDO illFamilyHistory){
		illFamilyHistory.setId(StringUtil.generalKeyword());
		return illFamilyHistoryDao.save(illFamilyHistory);
	}
	
	@Override
	public int update(IllFamilyHistoryDO illFamilyHistory){
		return illFamilyHistoryDao.update(illFamilyHistory);
	}
	
	@Override
	public int remove(String id){
		return illFamilyHistoryDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return illFamilyHistoryDao.batchRemove(ids);
	}
	
}
